package org.nursing.service.impl;

import org.nursing.dao.UserDao;
import org.nursing.entity.User;
import org.nursing.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User login(String loginName, String password) {
        return userDao.login(loginName, password);
    }

    @Override
    public int register(User user) {
        return userDao.register(user);
    }
}
